﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace IMDBApi.Contracts.Entities.Title.Trivia
{
    [DataContract]
    public class Trivia
    {
        [DataMember(Name = "exp")]
        public int Exp { get; set; }

        [DataMember(Name = "data")]
        public Data Data { get; set; }
    }

    [DataContract]
    public class Data
    {
        [DataMember(Name = "tconst")]
        public string Tconst { get; set; }

        [DataMember(Name = "spoilt")]
        public List<Spoilt> Spoilt { get; set; }

        [DataMember(Name = "type")]
        public string Type { get; set; }

        [DataMember(Name = "title")]
        public string Title { get; set; }

        [DataMember(Name = "unspoilt")]
        public List<Unspoilt> Unspoilt { get; set; }

        [DataMember(Name = "year")]
        public string Year { get; set; }
    }

    [DataContract]
    public class Spoilt
    {
        [DataMember(Name = "text")]
        public string Text { get; set; }
    }

    [DataContract]
    public class Unspoilt
    {
        [DataMember(Name = "text")]
        public string Text { get; set; }
    }
}
